Skip to content

Add a systemd service definition for managing the coaching platform containers start/stop/restart #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025

Conversation

jhodapp
Copy link
Member

@jhodapp jhodapp commented May 22, 2025

Description

This PR adds a systemd service definition for managing the coaching platform starting/stopping/restarting backend and frontend containers.

Currently, it needs to be manually copied over and installed onto the production server. Once in place, it shouldn't need to be reinstalled unless we have a new version of refactor-platform.service.

GitHub Issue: Implements #133 but does not fully close it yet.

Changes

  • Add a systemd service definition for managing the coaching platform containers starting/stopping/restarting
  • Remove outdated docs/runbooks/deploy.md runbook and replace with relevant instructions covering systemd service management

Testing Strategy

  1. Try starting the containers using systemctl as the deploy user, like so: systemctl start refactor-platform.service
  2. Ensure the containers all start and are running (refactor-platform-frontend, refactor-platform-backend): docker ps
  3. View the logs using journalctl as the deploy user, like so: journalctl -xeu refactor-platform.service
  4. Try stopping the containers using systemctl as the deploy user, like so: systemctl stop refactor-platform.service
  5. Ensure the containers all stop and are not running (refactor-platform-frontend, refactor-platform-backend): docker ps
  6. Try restarting the containers using systemctl as the deploy user, like so: systemctl restart refactor-platform.service

Concerns

None

@jhodapp jhodapp added this to the 1.0-beta1 milestone May 22, 2025
@jhodapp jhodapp self-assigned this May 22, 2025
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label May 22, 2025
@jhodapp jhodapp linked an issue May 22, 2025 that may be closed by this pull request
@jhodapp jhodapp added feature work Specifically implementing a new feature infrastructure DevOps related labels May 22, 2025
@jhodapp jhodapp requested review from lmcdonough and calebbourg May 22, 2025 17:08
@jhodapp
Copy link
Member Author

jhodapp commented May 24, 2025

I'm going to leave this unmerged until we get a chance to try this out on the production server. I don't anticipate needing to make any changes, but it's a non-zero chance and we might as well do that in this PR.

@jhodapp
Copy link
Member Author

jhodapp commented May 29, 2025

Tested it on our production server, but not yet enabling the service to start automatically on boot yet until we're ready for that.

@jhodapp jhodapp merged commit 368a2a4 into main May 29, 2025
8 checks passed
@jhodapp jhodapp deleted the 133-add-a-systemd-service-definition branch May 29, 2025 21:17
@github-project-automation github-project-automation bot moved this from Review to ✅ Done in Refactor Coaching Platform May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves existing functionality or feature feature work Specifically implementing a new feature infrastructure DevOps related
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Add a systemd service definition
2 participants